<!DOCTYPE html>
<html lang="en">
<head>
<title>New Document</title>
<meta charset="utf-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="${webRoot}resources/css/bootstrap.min.css" rel="stylesheet"
	media="screen">
<link href="${webRoot}resources/css/style.css" rel="stylesheet">
</head>
<body class="main">
	<ul class="breadcrumb">
		<li><span id="test">您当前的位置：</li>
		<li class="active">${getFeedbacks}</li>
	</ul>
	<div id="div">
		<div class="wrap index-slider">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th>反馈内容</th>
						<th>反馈人邮箱</th>
						<th>反馈时间</th>
					</tr>
				</thead>
				<tbody>
					<#if feedBacks?exists> 
					<#list feedBacks as feed>
					<tr>
						<td><#if feed.content?exists>${feed.content}
							</#if>
						</td>
						<td><#if feed.uemail?exists>${feed.uemail}</#if></td>
						<td>${feed.time?string("yyyy-MM-dd HH:mm:ss")}</td>
					</tr>
					</#list> </#if>
				</tbody>
			</table>
			<#if feedBacks?exists>
			<div class="pagination pagination-right">
				<input type="hidden" name="userSelectBean" id="userSelectBean"
					value="${userEntity}" /> <input type="hidden" name="pageEntity"
					id="pageEntity" value="${pageEntity}" />
				<ul>
					<#if pageEntity.page==1>
					<li class="disabled"><a href="#">&laquo;</a></li> <#else>
					<li><a
						href="javascript:pageHref(${pageEntity.page-1},${pageEntity.totalPage},${pageEntity.pageSize})">&laquo;</a></li>
					</#if> <#list 1..pageEntity.totalPage as i> <#if
					pageEntity.page==i>
					<li class="active"><a href="#">${i}</a></li> <#else>
					<li><a
						href="javascript:pageHref(${i},${pageEntity.totalPage},${pageEntity.pageSize})">${i}</a></li>
					</#if> </#list> <#if pageEntity.page==pageEntity.totalPage>
					<li class="disabled"><a href="#">»</a></li> <#else>
					<li><a
						href="javascript:pageHref(${pageEntity.page+1},${pageEntity.totalPage},${pageEntity.pageSize})">»</a></li>
					</#if>
				</ul>
			</div>
			</#if>
		</div>
</div>

		
	
	<script src="${webRoot}resources/js/jquery-1.9.2.min.js"></script>
	<script src="${webRoot}resources/js/bootstrap.min.js"></script>
	<script src="${webRoot}resources/js/js.js"></script>
	<script type="text/javascript">
		function pageHref(page, totalPage, pageSize) {
			$.ajax({
				url : "${webRoot}feedback/feedbackaAjaxList.do?page=" + page
						+ "&pageSize=" + pageSize + "&totalPage=" + totalPage,
				type : "post",
				cache : "false",
				error : function() {
					alert("系统繁忙，请稍后再试！");
				},
				success : function(msg) {
					$("#div").html(msg);
				}
			});
		}
	</script>
</body>
</html>
